package com.wlz.rabbitmq.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 *  工作队列模式
 * @author wlz
 * @date 2022-06-29  9:57 下午
 */
@Configuration
public class WorkConfig {


    @Bean
    public Queue workQueue1() {
        return new Queue("wlz_work_queue_1");
    }

    @Bean
    public Queue workQueue2() {
        return new Queue("wlz_work_queue_2");
    }

}
